home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1996 June / MACPOWER-1996-06.ISO.7z / MACPOWER-1996-06.ISO / AMUG / PROGRAMING_7 / Fat Module / Fat Module ト / Fat Module.r < prev    next >
Text File  |  1995-09-26  |  974b  |  29 lines

  1. #include "MixedMode.r"
  2.  
  3. /*
  4. Use the project ProcInfo.ケ to determine the correct value for the ProcInfo field below.
  5.  
  6. A single '$' means a hex value.  You can also use the C format of 0x... if you want.
  7. Run ProcInfo.ケ to prove for yourself that a C routine (kCStackBased) that has no
  8. arguments and returns void has a ProcInfo of $1 or 0x1.
  9. Two dollar signs indicate a rez variable, as in $$Resource.  $$Resource tells rez 
  10. to read the resource fork of a file and return, as a string, the data of a resource 
  11. of a certain type and ID.
  12.  
  13.  
  14. Use type 'MWCW' as 'fdes'; if you want a fat resource.
  15. */
  16.  
  17.  
  18. type 'ADgm' as 'sdes';
  19.  
  20. resource 'ADgm' (0) {
  21.     $3BE0,                                            // 68K ProcInfo
  22.     $3BE0,                                            // PowerPC ProcInfo
  23.     $$Resource("Fat Module", 'ADgm', 0),            // Specify filename, type, and ID of resource
  24.                                                     //   containing 68k code
  25.     $$Resource("Fat Module PEF", 'ADgm', 0)            // Specify filename, type, and ID of resource
  26.                                                     //   containing a pef container
  27. };
  28.  
  29.